package cn.ck.service.impl;


import cn.ck.common.RabbitMqConstant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @title: 消息接收
 *
 * */
@Component
@RabbitListener(queues = RabbitMqConstant.mq_key_hello)
public class HelloReceiver2 {

    private static final Logger logger = LoggerFactory.getLogger(HelloReceiver2.class);
    @RabbitHandler
    public void process(String message) {
        logger.info(String.format("***************************** HelloReceiver2 receive message: %s", message));
    }
}
